﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using QLTV.Public;
using QLTV.DAL;

namespace QLTV.BLL
{
    public class NXBBLL
    {
        NXBDAL nxbDAL = new NXBDAL();
        public DataTable Load()
        {
            try
            {
                return nxbDAL.Load();
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
        public DataTable TimTheoTen(NXBDTO nxbDTO)
        {
            try
            {
                return nxbDAL.TimTheoTen(nxbDTO);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
        public int nhapNXB(NXBDTO nxbDTO)
        {
            try
            {
                return nxbDAL.nhapNXB(nxbDTO);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
        public DataTable LoadDuLieuCotMaNXB(NXBDTO nxbDTO)
        {
            return nxbDAL.LoadDuLieuCotMaNXB(nxbDTO);
        }
        public int Xoa(NXBDTO nxbDTO)
        {
            return nxbDAL.Xoa(nxbDTO);
        }

    }
}
